package com.example.take_out_dish.exceptions.enumetation;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    SUCCESS(20000, "成功"),
    ERROR(50000, "失败"),
    UNKNOWN_ERROR(-1, "未知错误"),
    TOKEN_ERROR(30000, "token错误"),
    TOKEN_EXPIRED(30002, "token过期"),
    CATEGORY_ERROR(40000, "分类异常"),
    INVALID_ACCOUNT(30001, "账号不存在或者密码不正确");

    private Integer code;
    private String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
